CREATE TABLE [dbo].[tb_AsuntosDeTramite]
(
[IDAsuntoDeTramite] [int] NOT NULL IDENTITY(1, 1),
[Descripcion] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Reparticion] [int] NULL,
[ResponsableDelAsunto] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AsuntosDeTramite] ADD CONSTRAINT [PK_tb_AsuntosDeTramite] PRIMARY KEY CLUSTERED  ([IDAsuntoDeTramite]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AsuntosDeTramite] ADD CONSTRAINT [FK_tb_AsuntosDeTramite_tb_Reparticiones] FOREIGN KEY ([Reparticion]) REFERENCES [dbo].[tb_Reparticiones] ([idReparticion])
GO
ALTER TABLE [dbo].[tb_AsuntosDeTramite] WITH NOCHECK ADD CONSTRAINT [FK_tb_AsuntosDeTramite_tb_Usuarios] FOREIGN KEY ([ResponsableDelAsunto]) REFERENCES [dbo].[tb_Usuarios] ([idUsuario])
GO
